package com.yiyahui.project.erp.service;

import java.util.List;
import com.yiyahui.project.erp.domain.YiyaClosingWaterRelation;

/**
 * 结账流水项目关系Service接口
 * 
 * @author yiyahui
 * @date 2020-06-10
 */
public interface IYiyaClosingWaterRelationService 
{
    /**
     * 查询结账流水项目关系
     * 
     * @param id 结账流水项目关系ID
     * @return 结账流水项目关系
     */
    public YiyaClosingWaterRelation selectYiyaClosingWaterRelationById(Long id);

    /**
     * 查询结账流水项目关系列表
     * 
     * @param yiyaClosingWaterRelation 结账流水项目关系
     * @return 结账流水项目关系集合
     */
    public List<YiyaClosingWaterRelation> selectYiyaClosingWaterRelationList(YiyaClosingWaterRelation yiyaClosingWaterRelation);

    /**
     * 新增结账流水项目关系
     * 
     * @param yiyaClosingWaterRelation 结账流水项目关系
     * @return 结果
     */
    public int insertYiyaClosingWaterRelation(YiyaClosingWaterRelation yiyaClosingWaterRelation);

    /**
     * 修改结账流水项目关系
     * 
     * @param yiyaClosingWaterRelation 结账流水项目关系
     * @return 结果
     */
    public int updateYiyaClosingWaterRelation(YiyaClosingWaterRelation yiyaClosingWaterRelation);

    /**
     * 批量删除结账流水项目关系
     * 
     * @param ids 需要删除的结账流水项目关系ID
     * @return 结果
     */
    public int deleteYiyaClosingWaterRelationByIds(Long[] ids);

    /**
     * 删除结账流水项目关系信息
     * 
     * @param id 结账流水项目关系ID
     * @return 结果
     */
    public int deleteYiyaClosingWaterRelationById(Long id);

    YiyaClosingWaterRelation selectByMainClosingEntriesIdAndItemBillingId(Long itemBillingId,Long mainClosingEntriesId);

    void deleteByMainClosingEntriesId(Long mainClosingEntriesId);
}
